package com.se2.antiqueexhibition.Mapper;


import com.se2.antiqueexhibition.pojo.AdminNews;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminNewsMapper {
    void insert(AdminNews adminNews);
    void update(AdminNews adminNews);
    void delete(int id);
    AdminNews getAdminNewsById(String id);
    List<AdminNews> getAdminNewsListByCategory(String category);
    List<AdminNews> getAdminNewsListByStatus(int status);


    List<AdminNews> selectAll();
}
